package marchsoft.modules.selfFish.pisciculture.entity.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import marchsoft.utils.LocalDateTimeSerializerSelf;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/** 设备
 * @title 设备
 * @description 设备
 * @author Lenovo
 * @version 1.0
 * @create 2024-07-15 15:55
 */
@Data
@Accessors(chain = true)
@ApiModel(value = "EquipmentVo对象", description = "设备")
public class EquipmentVo extends Model<EquipmentVo> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "文件id")
    private Long fileId;

    @ApiModelProperty(value = "设备名称")
    private String zhName;

    @ApiModelProperty(value = "设备类型")
    private String equipType;

    @ApiModelProperty(value = "说明")
    private String description;

    @ApiModelProperty(value = "金额")
    private BigDecimal price;

    @ApiModelProperty(value = "数量")
    private Integer num;

    @ApiModelProperty(value = "实物图片存储路径")
    private String url;

    @ApiModelProperty(value = "创建人")
    private Long createdUserId;

    @ApiModelProperty(value = "创建时间")
    @JsonSerialize(using = LocalDateTimeSerializerSelf.class)
    private LocalDateTime createdTime;

    @ApiModelProperty(value = "设备类型")
    private String equipTypeName;

    @ApiModelProperty(value = "排序")
    private Integer rowNum;
}
